package client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.BindingResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import parm.CartListParm;
import parm.PageParam;
import pojo.User;
import utils.R;

@FeignClient("user-com.zxs.user.service")
public interface UserCient {

    @PostMapping("/user/admin/list")
    R list(@RequestBody PageParam pageParam);

    @PostMapping("/user/admin/remove")
    R remove(@RequestBody  CartListParm cartListParm);

    @PostMapping("/user/admin/update")
    R update(@RequestBody User user);

    @PostMapping("/user/admin/save")
    R save(@RequestBody User user);

}
